//
//  SearchCuntryHeaderView.m
//  ImGuider
//
//  Created by 王鹏宇 on 2017/12/27.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import "SearchCuntryHeaderView.h"

@implementation SearchCuntryHeaderView


- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithReuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.backgroundColor = [UIColor groupTableViewBackgroundColor];
        _cuntryNameLabel = [UILabel new];
        
        [self.contentView addSubview:_cuntryNameLabel];
        
        [_cuntryNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            
            make.top.equalTo(self.contentView.mas_top);
            make.bottom.equalTo(self.contentView.mas_bottom);
            make.left.equalTo(self.contentView.mas_left).offset(16);
            make.right.equalTo(self.contentView.mas_right).offset(-16);
        }];
        
        _cuntryNameLabel.textColor = kContentColor;
        _cuntryNameLabel.font = Font(12);
    }
    
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
